﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;
using Winter.BackEnd.Models.DataTypes;

namespace Winter.BackEnd.Models.Domain
{
    public partial class Teacher : IPerson
    {
        #region IPerson Members

        public string Role
        {
            get
            {
                return Person.UserRole;
            }
        }

        public string FullName
        {
            get { return Person.FirstName + " " + Person.SecondName + " " + Person.LastName; }
        }

        public string Sex
        {
            get { throw new NotImplementedException(); }
        }

        public string BirthDate
        {
            get { return String.Format("{0:g}", Person.Birthdate); }
        }

        public string Email
        {
            get { return Person.Email; }
        }

        public System.Collections.ICollection Duties
        {
            get
            {
                Hashtable duties = new Hashtable();
                return duties;
            }
        }

        public IList<Winter.BackEnd.Models.DataTypes.Message> RecievedMessages
        {
            get
            {
                return (new List<Winter.BackEnd.Models.DataTypes.Message>());
            }
        }

        public IEnumerable<MenuLink> NavigationMenu
        {
            get
            {
                List<MenuLink> menu = new List<MenuLink>();
                menu.Add(new MenuLink()
                {
                    LinkText = "Profile",
                    ActionName = "/Person/",
                    ControllerName = "true"
                });
                return menu;
            }
        }

        #endregion
    }
}
